package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.lang.Exception;
import java.lang.StackTraceElement;

public final class errorpage_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();

  private static java.util.List _jspx_dependants;

  static {
    _jspx_dependants = new java.util.ArrayList(5);
    _jspx_dependants.add("/system/include/taglib.jsp");
    _jspx_dependants.add("/WEB-INF/struts-bean.tld");
    _jspx_dependants.add("/WEB-INF/struts-logic.tld");
    _jspx_dependants.add("/WEB-INF/struts-html.tld");
    _jspx_dependants.add("/WEB-INF/tld/mytag.tld");
  }

  private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005flogic_005fnotEmpty_0026_005fname;

  private javax.el.ExpressionFactory _el_expressionfactory;
  private org.apache.AnnotationProcessor _jsp_annotationprocessor;

  public Object getDependants() {
    return _jspx_dependants;
  }

  public void _jspInit() {
    _005fjspx_005ftagPool_005flogic_005fnotEmpty_0026_005fname = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
    _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
    _jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
  }

  public void _jspDestroy() {
    _005fjspx_005ftagPool_005flogic_005fnotEmpty_0026_005fname.release();
  }

  public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;


    try {
      response.setContentType("text/html; charset=utf-8");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write('\r');
      out.write('\n');
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");

response.setHeader("Pragma","No-cache");
response.setHeader("Cache-Control","no-cache");
response.setDateHeader("Expires", 0);

      out.write("\r\n");
      out.write("\r\n");
 
try
{

      out.write("\r\n");
      out.write("<html>\r\n");
      out.write("<head>\r\n");
      out.write("<title>中山市中凯信息科技有限公司-错误信息页面</title>\r\n");
      out.write("<style type=\"text/css\">\r\n");
      out.write("body {\r\n");
      out.write("\tmargin: 0;\r\n");
      out.write("\tpadding: 0;\r\n");
      out.write("\ttext-align: center;\r\n");
      out.write("\tfont-size: 11px;\r\n");
      out.write("\tfont-family: Arial\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("a {\r\n");
      out.write("\tcolor: #000000;\r\n");
      out.write("\ttext-decoration: none\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("a:hover,a:active {\r\n");
      out.write("\tcolor: #FF0000;\r\n");
      out.write("\ttext-decoration: underline\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("#error {\r\n");
      out.write("\twidth: 990px;\r\n");
      out.write("\ttext-align: center;\r\n");
      out.write("\tposition: relative\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("#head {\r\n");
      out.write("\theight: 36px;\r\n");
      out.write("\tbackground-image: url('/sysadm/skin/image/line.gif');\r\n");
      out.write("\twidth: 990px;\r\n");
      out.write("\ttext-align: left;\r\n");
      out.write("\tpadding-left: 20px;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("#content {\r\n");
      out.write("\theight: 300px;\r\n");
      out.write("\tborder: #CCCCCC 1px solid;\r\n");
      out.write("\twidth: 950px;\r\n");
      out.write("\tposition: relative;\r\n");
      out.write("\tmargin-top: 5px;\r\n");
      out.write("\tmargin-bottom: 5px;\r\n");
      out.write("\ttext-align: left\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("#bottom {\r\n");
      out.write("\twidth: 990px;\r\n");
      out.write("\theight: 100px\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write(".big {\r\n");
      out.write("\tfont-size: 18px;\r\n");
      out.write("\tfont-weight: bold;\r\n");
      out.write("\tpadding-top: 50px;\r\n");
      out.write("\tmargin-bottom: 20px;\r\n");
      out.write("\tpadding-left: 50px\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write(".two {\r\n");
      out.write("\tfont-weight: bold;\r\n");
      out.write("\tpadding-left: 50px\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("li a {\r\n");
      out.write("\tcolor: #3366FF\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write(".main {\r\n");
      out.write("\tpadding-top: 10px\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write(".list {\r\n");
      out.write("\tpadding-left: 50px;\r\n");
      out.write("\tline-height: 200%\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write(".pic {\r\n");
      out.write("\tposition: absolute;\r\n");
      out.write("\tleft: 381px;\r\n");
      out.write("\ttop: 12px;\r\n");
      out.write("}\r\n");
      out.write("</style>\r\n");
      out.write("</head>\r\n");
      out.write("<div id=\"error\">\r\n");
      out.write("  <div id=\"content\">\r\n");
      out.write("    <div class=\"pic\"></div>\r\n");
      out.write("    <div class=\"big\">\r\n");
      out.write("      ");
      //  logic:notEmpty
      org.apache.struts.taglib.logic.NotEmptyTag _jspx_th_logic_005fnotEmpty_005f0 = (org.apache.struts.taglib.logic.NotEmptyTag) _005fjspx_005ftagPool_005flogic_005fnotEmpty_0026_005fname.get(org.apache.struts.taglib.logic.NotEmptyTag.class);
      _jspx_th_logic_005fnotEmpty_005f0.setPageContext(_jspx_page_context);
      _jspx_th_logic_005fnotEmpty_005f0.setParent(null);
      // /errorpage.jsp(96,6) name = name type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
      _jspx_th_logic_005fnotEmpty_005f0.setName("errorinfo");
      int _jspx_eval_logic_005fnotEmpty_005f0 = _jspx_th_logic_005fnotEmpty_005f0.doStartTag();
      if (_jspx_eval_logic_005fnotEmpty_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        do {
          out.write("\r\n");
          out.write("        ");

				Exception ex = (Exception) pageContext.getRequest().getAttribute(
						"errorinfo");        	
				if (ex == null)
					ex = (Exception) pageContext.getAttribute("errorinfo");

				if (ex != null) {
					StackTraceElement[] trace = ex.getStackTrace();
					String info = ex.toString();
					if (info.matches("java.lang.RuntimeException:.*"))
						info = info.substring(27);
					out.println("<font color='#FF0000'>"+info+"!</font><br/>");
				//	for (int i = 0; i < trace.length; i++)
						//out.println("<font color='#000000'; size='+0'>" + trace[i]+ "</font><br/>");
				}
			
          out.write("\r\n");
          out.write("      ");
          int evalDoAfterBody = _jspx_th_logic_005fnotEmpty_005f0.doAfterBody();
          if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
            break;
        } while (true);
      }
      if (_jspx_th_logic_005fnotEmpty_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
        _005fjspx_005ftagPool_005flogic_005fnotEmpty_0026_005fname.reuse(_jspx_th_logic_005fnotEmpty_005f0);
        return;
      }
      _005fjspx_005ftagPool_005flogic_005fnotEmpty_0026_005fname.reuse(_jspx_th_logic_005fnotEmpty_005f0);
      out.write("\r\n");
      out.write("<!-- \r\n");
      out.write("      <span class=\"pic\"> <img src=\"/sysadm/skin/image/04.jpg\"\r\n");
      out.write("\t\t\t\t\t\twidth=\"200px\" height=\"164\" /> </span> \r\n");
      out.write(" -->\t\t\t\t\t\t\r\n");
      out.write("\t\t\t\t\t\t</div>\r\n");
      out.write("    <div class=\"two\"> 请尝试以下几种方式继续浏览： </div>\r\n");
      out.write("    <div class=\"list\">\r\n");
      out.write("      <ul>\r\n");
      out.write("        <li> 检查您正在浏览的网址是否正确 </li>\r\n");
      out.write("        <li><a href=\"Javascript:history.go(-1);\">返回</a></li>\r\n");
      out.write("      </ul>\r\n");
      out.write("    </div>\r\n");
      out.write("  </div>\r\n");
      out.write("</div>\r\n");
      out.write("</body></html>\r\n");
 
}
catch (Exception ex)
{
	ex.printStackTrace();
}

    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try { out.clearBuffer(); } catch (java.io.IOException e) {}
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
}
